import service from '@/utils/request'

export const useStatusApi = (id: number) => {
    return service.get('/clouddevice/status/' + id)
}

export const queryById = (dataForm: any) => {
    return service.post('/deviceStatus/queryById' , dataForm)
}
export const useStatusSubmitApi = (dataForm: any) => {
    if (dataForm.id) {
        return service.put('/deviceStatus/update', dataForm)
    } else {
        return service.post('/deviceStatus/update', dataForm)
    }
}